/*主色调*/
@const primary:#2d8cf0;
@const light-primary: #5cadff;
@const dark-primary: #2b85e4;
/*辅助色*/
@const info:#2db7f5;
@const success:#19be6b;
@const warning:#ff9900;
@const error:#ed4014;
/*中性色*/
@const title:#17233d;
@const content:#515a6e;
@const sub:#808695;
@const disable:#c5c8ce;
@const border:#dcdee2;
@const divider:#e8eaec;
@const background:#f8f8f9;
@const scroll:scroll-indicator;

@set title-bar {
    :root {
        width: 100vw;
        height: 30px;
        background: #17233d;
        padding-left: 10px;
    }

    .title-bar-title {
        float: left;
        color: #fff;
        line-height: 30px;
        position: relative;
        left: 10px;
    }

    .app-icon {
        position: absolute;
        line-height: 16px;
        top: 7px;
        left: 0;
    }

    .app-name {
        position: absolute;
        height: 14px;
        line-height: 14px;
        top: 6px;
        left: 21px;
    }

    .title-bar-title-bar-action {
        height: 30px;
        float: right;
        behavior: button;
    }

    .title-bar-action .btn {
        display: inline-block;
        width: 30px;
        height: 30px;
        float: right;
        border: none;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }

    .title-bar-action .exit {
        background: url("../images/icon/window-close.png") center center;
        background-size: 16px;
    }

    .title-bar-action .exit:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/window-close_hover.png") center center;
        background-size: 16px;
    }

    .title-bar-action .mini {
        background: url("../images/icon/window-minimize.png") center center;
        background-size: 16px;
    }

    .title-bar-action .mini:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/window-minimize_hover.png") center center;
        background-size: 16px;
    }

    .title-bar-action .set {
        background: url("../images/icon/settings.png") center center;
        background-size: 16px;
    }

    .title-bar-action .set:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/settings_hover.png") center center;
        background-size: 16px;
    }

    .title-bar-action .refresh {
        background: url("../images/icon/refresh.png") center center;
        background-size: 16px;
    }

    .title-bar-action .refresh:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/refresh_hover.png") center center;
        background-size: 16px;
    }

    .title-bar-action .max {
        background: url("../images/icon/max.png") center center;
        background-size: 16px;
    }

    .title-bar-action .max:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/max_hover.png") center center;
        background-size: 16px;
    }

    .title-bar-action .min {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/min.png") center center;
        background-size: 16px;
    }

    .title-bar-action .min:hover {
        background: rgba(0, 0, 0, 0.3) url("../images/icon/min_hover.png") center center;
        background-size: 16px;
    }
    .title-bar-action .min,.title-bar-action .max{
        display: none;
    }
}

@mixin btn {
    behavior: button;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 0 15px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    border: none;
    outline: none;
    border-radius: 4px;
    line-height: 28px !important;
}

.btn:hover {
    opacity: 0.8;
}

.btn:active {
    opacity: 1;
}

.btn-primary {
    @btn;
    background: @primary;
    color: #fff;
}